io-pnm.c (pnm_read_header): Use GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 14 Sep 2001 22:15:54 +0000 (22:15 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 14 Sep 2001 22:15:54 +0000 (22:15 +0000)
not GDK_PIXBUF_ERROR_HEADER_CORRUPT. (#58308)

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-pnm.c

index 08eca748ebbb0643c0d6cebe0222a1b63447dbea..14d1ad947c5d2b7989f7f230535832dbf8a703b6 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 14 23:22:12 2001  Matthias Clasen  <matthiasc@poet.de>
+
+       * io-pnm.c (pnm_read_header): Use GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+       not GDK_PIXBUF_ERROR_HEADER_CORRUPT. (#58308)
+
 Fri Sep 14 22:53:45 2001  Matthias Clasen  <matthiasc@poet.de>
 
        * io-jpeg.c (gdk_pixbuf__jpeg_image_begin_load): Handle
index eafe1309332e5f979eecf6516894310816806f57..455bd2f783b5408d6e0ddef7b36213bbdbf328bd 100644 (file)
@@ -282,7 +282,7 @@ pnm_read_header (PnmLoaderContext *context)
                if (*inbuf->byte != 'P') {
                        g_set_error (context->error,
                                     GDK_PIXBUF_ERROR,
-                                    GDK_PIXBUF_ERROR_HEADER_CORRUPT,
+                                    GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
                                     _("PNM file has an incorrect initial byte"));
                        return PNM_FATAL_ERR;
                }
@@ -312,7 +312,7 @@ pnm_read_header (PnmLoaderContext *context)
                default:
                        g_set_error (context->error,
                                     GDK_PIXBUF_ERROR,
-                                    GDK_PIXBUF_ERROR_HEADER_CORRUPT,
+                                    GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
                                     _("PNM file is not in a recognized PNM subformat"));
                        return PNM_FATAL_ERR;
                }
@@ -337,7 +337,7 @@ pnm_read_header (PnmLoaderContext *context)
                if (!width) {
                        g_set_error (context->error,
                                     GDK_PIXBUF_ERROR,
-                                    GDK_PIXBUF_ERROR_HEADER_CORRUPT,
+                                    GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
                                     _("PNM file has an image width of 0"));
                        return PNM_FATAL_ERR;
                }
@@ -358,7 +358,7 @@ pnm_read_header (PnmLoaderContext *context)
                if (!height) {
                        g_set_error (context->error,
                                     GDK_PIXBUF_ERROR,
-                                    GDK_PIXBUF_ERROR_HEADER_CORRUPT,
+                                    GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
                                     _("PNM file has an image height of 0"));
                        return PNM_FATAL_ERR;
                }
@@ -381,7 +381,7 @@ pnm_read_header (PnmLoaderContext *context)
                        if (context->maxval == 0) {
                                g_set_error (context->error,
                                             GDK_PIXBUF_ERROR,
-                                            GDK_PIXBUF_ERROR_HEADER_CORRUPT,
+                                            GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
                                             _("Maximum color value in PNM file is 0"));
                                return PNM_FATAL_ERR;
                        }
@@ -389,7 +389,7 @@ pnm_read_header (PnmLoaderContext *context)
                        if (context->maxval > 65535) {
                                g_set_error (context->error,
                                             GDK_PIXBUF_ERROR,
-                                            GDK_PIXBUF_ERROR_HEADER_CORRUPT,
+                                            GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
                                             _("Maximum color value in PNM file is too large"));
                                return PNM_FATAL_ERR;
                        }
@@ -397,7 +397,7 @@ pnm_read_header (PnmLoaderContext *context)
                        if (context->maxval > 255) {
                                g_set_error (context->error,
                                             GDK_PIXBUF_ERROR,
-                                            GDK_PIXBUF_ERROR_HEADER_CORRUPT,
+                                            GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
                                             _("Can't handle PNM files with maximum color values greater than 255"));
                                return PNM_FATAL_ERR;
                        }